package com.buer.storage.otherService.impl;

import com.buer.storage.otherDao.FormmainDao;
import com.buer.storage.otherEntity.FormmainDO;
import com.buer.storage.otherService.FormmainService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2021/1/26.
 */
@Service
public class FormmainServiceImpl implements FormmainService{
    @Resource
    private FormmainDao formmainDao;


    @Override
    public FormmainDO get(Long ID) {
        return formmainDao.get(ID);
    }

    @Override
    public int save(FormmainDO formmain) {
        return formmainDao.save(formmain);
    }

    @Override
    public int update(FormmainDO formmain) {
        return formmainDao.update(formmain);
    }

    @Override
    public int remove(Long ID) {
        return formmainDao.remove(ID);
    }

    @Override
    public int removeAllByName(String name) {
        return formmainDao.removeAllByName(name);
    }


    @Override
    public List<FormmainDO> getFormmainList(Map<String, Object> map) {
        return formmainDao.getFormmainList(map);
    }

    @Override
    public FormmainDO getOne(Map<String, Object> map) {
        return formmainDao.getOne(map);
    }
}
